@extends('layouts.mobile')

@section('title', $shop['shop_name'])

@section('content')
    <div class="shopview">
        <div class="shop-header">
            <div class="info">
                <div class="logo bg-cover" style="background-image: url({{image_url($shop['logo'])}})"></div>
                <div class="data">
                    <h4>{{$shop['shop_name']}}</h4>
                    <p>
                        <span>商品数:{{$items->count()}}</span>
                        <span>累计销量:{{formatCount($shop['total_sold'])}}</span>
                        <span>{{$shop['city']}}{{$shop['district']}}</span>
                    </p>
                </div>
            </div>
            <ul class="tabs">
                <li @if($orderby=='sold') class="active"@endif data-link="{{mobile_shop_url($shop_id)}}?orderby=sold">热销</li>
                <li @if($orderby=='time') class="active"@endif data-link="{{mobile_shop_url($shop_id)}}?orderby=time">新品</li>
            </ul>
        </div>

        @include('mobile.item.itemgridlist')
    </div>
@stop
